//菜单
export type MenuAuth = string[];
//用户
export type User = {
    _id: string;
    account_id: string;
    password: string;
    role_id: string;
    roleName: string;
    name: string;
    gender: '男' | '女';
    loginName: string;
    email: string;
    phone: string;
    remark: string;
};
//角色
export type Role = {
    _id: string;
    account_id: string;
    name: string;
    state: boolean;
    remark: string;
    creatdTime: string;
    updateTime: string;
    menuAuth: MenuAuth;
};
//账号
export type Account = {
    _id: string;
};
const accountList: Account[] = [
    {
        _id: '0001'
    }
];
const userList: User[] = [
    {
        _id: '001-u-001',
        account_id: '0001',
        role_id: '001-r-001',
        roleName: '超级管理员',
        password: '123456',
        name: '张三',
        gender: '男',
        loginName: 'superadmin',
        email: 'zhangsan@email.com',
        phone: '10010010001',
        remark: '我于杀戮之中盛放，亦如黎明中的花朵。'
    },
    {
        _id: '001-u-002',
        account_id: '0001',
        role_id: '001-r-002',
        roleName: '普通管理员',
        password: '123456',
        name: '李四',
        gender: '男',
        loginName: 'admin',
        email: 'lisi@email.com',
        phone: '10020020002',
        remark: '真正的大师永远怀着一个学徒的心。'
    },
    {
        _id: '001-u-003',
        account_id: '0001',
        role_id: '001-r-003',
        roleName: '测试管理员',
        password: '123456',
        name: '王五',
        gender: '男',
        loginName: 'test',
        email: 'wangwu@email.com',
        phone: '10030030003',
        remark: '我曾踏足山巅，也曾进入低谷，两者都让我受益良多。'

    },
    {
        _id: '001-u-004',
        account_id: '0001',
        role_id: '001-r-004',
        roleName: '测试管理员2',
        password: '123456',
        name: '赵六',
        gender: '女',
        loginName: 'test2',
        email: 'zhaoliu@email.com',
        phone: '10040040004',
        remark: '我宁愿犯错，也不愿什么也不做！'
    }
];
const roleList: Role[] = [
    {
        _id: '001-r-001',
        account_id: '0001',
        name: '超级管理员',
        state: true,
        remark: '系统默认超级管理员',
        creatdTime: '2021-03-01 00:00:00',
        updateTime: '2021-03-02 10:11:23',
        menuAuth: ['workplace', 'dashboard', 'system']
    },
    {
        _id: '001-r-002',
        account_id: '0001',
        name: '普通管理员',
        state: true,
        remark: '普通管理员',
        creatdTime: '2021-07-01 08:06:09',
        updateTime: '2021-07-01 08:06:09',
        menuAuth: ['workplace', 'dashboard']
    },
    {
        _id: '001-r-003',
        account_id: '0001',
        name: '测试管理员',
        state: false,
        remark: '测试管理员',
        creatdTime: '2021-07-01 18:35:09',
        updateTime: '2021-07-01 18:35:09',
        menuAuth: ['workplace']
    },
    {
        _id: '001-r-004',
        account_id: '0001',
        name: '测试管理员2',
        state: false,
        remark: '测试管理员2',
        creatdTime: '2021-07-01 18:35:09',
        updateTime: '2021-07-01 18:35:09',
        menuAuth: ['dashboard']
    }
];
export {
    accountList,
    userList,
    roleList
};